//
//  GetData.h
//  Moment
//
//  Created by dllo on 15/12/21.
//  Copyright © 2015年 谭泽源. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^GetDataBlock)(id result);


@interface GetData : NSObject


//get请求
+ (void)getDataWithURL:(NSString *)url block:(GetDataBlock)block;

//post请求
+ (void)getDataWithURL:(NSString *)url postDic:(NSDictionary *)dic block:(GetDataBlock)block;


@end
